package com.example.paper.mvp.contract;

import com.example.mvp.model.BaseEntity;
import com.example.mvp.model.IModel;
import com.example.mvp.view.IView;
import com.example.paper.brean.UserIteamEntivy;
import com.example.paper.brean.UserMenuEntivy;

import java.util.List;
import java.util.Map;

import io.reactivex.Observable;

public interface IUserContract {

    interface IUserModel extends IModel {
        Observable<BaseEntity> request(Map<String, Object> map);
    }

    interface IUserView extends IView {
        //用户信息回调方法，今日签到任务列表
        void refresh(BaseEntity entity);
        //用户菜单界面
        void refreshMenu(List<UserMenuEntivy> menues);
        //积分商城界面
        void refreshItemes(List<UserIteamEntivy> itemes);
    }

}
